<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://vxeui.com/umd/vxe-pc-ui@4.2.12/lib/style.min.css">
  <link rel="stylesheet" href="https://vxeui.com/umd/vxe-table@4.7.85/lib/style.min.css">
  <!-- 引入vue -->
  <script src="https://vxeui.com/umd/vue@3.4.27/dist/vue.global.prod.js"></script>
  <!-- 引入组件 -->
  <script src="https://vxeui.com/umd/xe-utils@3.5.30/dist/xe-utils.umd.min.js"></script>
  <script src="https://vxeui.com/umd/vxe-pc-ui@4.2.12/lib/index.umd.min.js"></script>
  <script src="https://vxeui.com/umd/vxe-table@4.7.85/lib/index.umd.min.js"></script>
</head>
<body>
<div id="app">
  <div>
    <vxe-table :data="tableData">
      <vxe-column type="seq" title="Seq" width="60"></vxe-column>
      <vxe-column field="name" title="Name"></vxe-column>
      <vxe-column field="role" title="Role"></vxe-column>
      <vxe-colgroup title="Group1">
        <vxe-column field="sex" title="Sex"></vxe-column>
        <vxe-column field="address" title="Address"></vxe-column>
      </vxe-colgroup>
    </vxe-table>
  </div>
</div>
<script>
  (function () {
    var App = {
      data() {
        return {
          tableData: [
            { id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', address: 'Shenzhen' },
            { id: 10002, name: 'Test2', role: 'Test', sex: 'Man', address: 'Guangzhou' },
            { id: 10003, name: 'Test3', role: 'PM', sex: 'Man', address: 'Shanghai' }
          ]
        }
      }
    }
    Vue.createApp(App).use(VxeUI).use(VXETable).mount('#app')
  })()
</script>
</body>
</html>